<?php 
 
namespace app\common\model;

use app\common\model\BaseModel;
use app\common\traits\ModelTrait;
use app\common\utils\JsonService;
/**
* This is the model class for table "{ptf_integral_record}".
*
* @property int $id  
* @property int $member_id 用户ID 
* @property int $shop_id 店铺ID 
* @property int $goods_id 商品ID 
* @property int $order_id 订单id 
* @property int $integral 积分 
* @property int $type 类型1:新增积分,2:减积分 
* @property string $marks 备注
* @property int $create_time 创建时间 
*/
class IntegralRecord extends BaseModel{

    protected $pk = 'id';
    protected $name = 'integral_record';

    use ModelTrait;
    protected $autoWriteTimestamp = true;
    //protected $dateFormat = 'Y-m-d';
    //protected $createTime = 'create_time';
    //protected $updateTime = 'update_time';

    /**
    * {@inheritdoc}
    */
    public function attributeLabels()
    {
        return [
            'id' => '',
            'member_id' => '用户ID',
            'shop_id' => '店铺ID',
            'goods_id' => '商品ID',
            'order_id' => '订单id',
            'integral' => '积分',
            'type' => '类型1:新增积分,2:减积分',
            'marks' => '备注',
            'create_time' => '创建时间',
        ];
    }

}


?>